package com.hopu.service.Impl;

import com.hopu.mapper.ShouruMapper;
import com.hopu.pojo.Shouru;
import com.hopu.service.ShouruService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShouruServiceImpl implements ShouruService {
   @Autowired
   private ShouruMapper shouruMapper;


    @Override
    public List<Shouru> findAllShouru() {
        return shouruMapper.findAllShouru();
    }

    @Override
    public int addShouru(int eid, Float smoney, String stm, long stime, String sremark) {
        return shouruMapper.addShouru(eid,smoney,stm,stime,sremark);
    }

    @Override
    public Shouru findShouruBySid(int sid) {
        return shouruMapper.findShouruBySid(sid);
    }

    @Override
    public int uppShouru(Shouru shouru) {
        return shouruMapper.uppShouru(shouru);
    }
}
